package com.usian.skill.controller;

import com.usian.skill.mq.MqSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mq")
public class MQController {
    @Autowired
    private MqSender mqSender;

    @RequestMapping("/send")
    public String sendMsg(){
        mqSender.sendmiaoshaMessage("hello,MQ");
        return "BBQ";
    }
}
